package com.sca.commontest.test.designpattern.decorator.drink;

/**
 * @Author: denglei
 * @Date: 2022/1/7 10:13
 * @Description:
 */
public abstract class Drink {
    protected String desc="";
    protected float price=0f;

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc+"价格"+price;
    }

    public float getPrice() {
        return price;
    }

    public void setPrice(float price) {
        this.price = price;
    }

    public  abstract  float getCost();
}
